from selenium import webdriver
from base.basetools import Base
from base.chrome_options import Options

# driver = webdriver.Chrome(options=Options().options_conf())
# bs = Base(driver)

# # 登录
# bs.open("http://192.168.10.144:8040/#/login")
# bs.input(('name', 'accountName'), 'yxxgys')
# bs.input(('name', 'password'), '123456')
# # 手动输入验证码，因此等待5秒
# bs.wait(5)
# bs.click(('id', 'login'))
# bs.wait(3)
#
# # 医院产品维护
# bs.open("http://192.168.10.144:8040/#/home/productMgr/hospCstMgr")
# bs.click(('xpath', '//span[text()="新增"]'))
# bs.click(('xpath', '//div[text()="医院名称"]/../div/p-dropdown'))
# bs.click(('xpath', '//span[text()="宁波大学附属人民医院"]'))
# bs.input(('xpath', '//input[@formcontrolname="cstName"]'), '耗材0001')
#
# bs.wait(10)
# bs.quit()


